import { View } from "@tarojs/components"
import {PostCard} from '../../components'
import './index.scss'



export default function MyPostCard (props){

  let timeInfo=props.timeInfo
  let positionInfo=props.positionInfo
  let isDetail=props.isDetail

  console.log(positionInfo);
  return(
    <View>
      <View className='hint'>
        投递时间:{timeInfo}
      </View>
      {positionInfo?positionInfo.map((Info,index)=>(<PostCard key={index} Info={Info} isDetail={isDetail} canJump={false} isCollected={Info.collected}></PostCard>)):null}

    </View>
  )
}